/*
 *
Derived func

 */
#include <iostream>
using namespace std;
class A{};
class B:public A{};
class Base{
	public:
		virtual void func(void){
			cout << "Base func" << endl;
		}
		A* foo(void){
			//this->func();
			func();
		}
};
class Derived: public Base{
	void func(void) {
		cout <<"Derived func" << endl;
	}
};
int main(void){
	Derived d1;
	d1.foo();
	return 0;
}
